package com.xwltz.core.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @description ThreadPoolConfig
 * @information on version 1.0 be created by @xwltz at 2022/6/17 15:51
 */

@Data
@Component
@ConfigurationProperties(prefix = "thread-pool")
public class ThreadPoolConfig implements Serializable {

	private boolean enabled;
	private Integer corePoolSize;
	private Integer maxPoolSize;
	private Integer queueCapacity;
	private Integer keepAliveSeconds;
	private String rejectedExecutionHandler;
}
